home *** CD-ROM | disk | FTP | other *** search
- Public Class DynamicPropertiesForm
- Inherits System.Windows.Forms.Form
-
- ' nothing to do in this form - dynamic properties are automatically
- ' loaded in the code portion below
-
- #Region " Windows Form Designer generated code "
-
- Public Sub New()
- MyBase.New()
-
- 'This call is required by the Windows Form Designer.
- InitializeComponent()
-
- 'Add any initialization after the InitializeComponent() call
-
- End Sub
-
- 'Form overrides dispose to clean up the component list.
- Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If Not (components Is Nothing) Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
- Friend WithEvents txtServerName As System.Windows.Forms.TextBox
- Friend WithEvents Label1 As System.Windows.Forms.Label
- Friend WithEvents Label2 As System.Windows.Forms.Label
- Friend WithEvents txtUserName As System.Windows.Forms.TextBox
- Friend WithEvents Label3 As System.Windows.Forms.Label
- Friend WithEvents txtPassword As System.Windows.Forms.TextBox
- Friend WithEvents Button1 As System.Windows.Forms.Button
-
- 'Required by the Windows Form Designer
- Private components As System.ComponentModel.Container
-
- 'NOTE: The following procedure is required by the Windows Form Designer
- 'It can be modified using the Windows Form Designer.
- 'Do not modify it using the code editor.
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Dim configurationAppSettings As System.Collections.Specialized.NameValueCollection = System.Configuration.ConfigurationSettings.AppSettings
- Me.Label1 = New System.Windows.Forms.Label()
- Me.Label2 = New System.Windows.Forms.Label()
- Me.txtServerName = New System.Windows.Forms.TextBox()
- Me.Button1 = New System.Windows.Forms.Button()
- Me.txtUserName = New System.Windows.Forms.TextBox()
- Me.Label3 = New System.Windows.Forms.Label()
- Me.txtPassword = New System.Windows.Forms.TextBox()
- Me.SuspendLayout()
- '
- 'Label1
- '
- Me.Label1.Location = New System.Drawing.Point(24, 24)
- Me.Label1.Name = "Label1"
- Me.Label1.Size = New System.Drawing.Size(216, 24)
- Me.Label1.TabIndex = 1
- Me.Label1.Text = "Server Name"
- '
- 'Label2
- '
- Me.Label2.Location = New System.Drawing.Point(24, 96)
- Me.Label2.Name = "Label2"
- Me.Label2.Size = New System.Drawing.Size(216, 24)
- Me.Label2.TabIndex = 1
- Me.Label2.Text = "User Name"
- '
- 'txtServerName
- '
- Me.txtServerName.Location = New System.Drawing.Point(24, 48)
- Me.txtServerName.Name = "txtServerName"
- Me.txtServerName.Size = New System.Drawing.Size(208, 24)
- Me.txtServerName.TabIndex = 0
- Me.txtServerName.Text = configurationAppSettings.Get("ServerName")
- '
- 'Button1
- '
- Me.Button1.Location = New System.Drawing.Point(256, 40)
- Me.Button1.Name = "Button1"
- Me.Button1.Size = New System.Drawing.Size(80, 32)
- Me.Button1.TabIndex = 2
- Me.Button1.Text = "Connect"
- '
- 'txtUserName
- '
- Me.txtUserName.Location = New System.Drawing.Point(24, 120)
- Me.txtUserName.Name = "txtUserName"
- Me.txtUserName.Size = New System.Drawing.Size(208, 24)
- Me.txtUserName.TabIndex = 0
- Me.txtUserName.Text = configurationAppSettings.Get("UserName")
- '
- 'Label3
- '
- Me.Label3.Location = New System.Drawing.Point(24, 168)
- Me.Label3.Name = "Label3"
- Me.Label3.Size = New System.Drawing.Size(216, 24)
- Me.Label3.TabIndex = 1
- Me.Label3.Text = "Password"
- '
- 'txtPassword
- '
- Me.txtPassword.Location = New System.Drawing.Point(24, 192)
- Me.txtPassword.Name = "txtPassword"
- Me.txtPassword.Size = New System.Drawing.Size(208, 24)
- Me.txtPassword.TabIndex = 0
- Me.txtPassword.Text = ""
- '
- 'DynamicPropertiesForm
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(7, 17)
- Me.ClientSize = New System.Drawing.Size(352, 245)
- Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button1, Me.Label3, Me.txtPassword, Me.Label2, Me.txtUserName, Me.Label1, Me.txtServerName})
- Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 11!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.Name = "DynamicPropertiesForm"
- Me.Text = "SQL Server Connection"
- Me.ResumeLayout(False)
-
- End Sub
-
- #End Region
-
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Me.Close()
- End Sub
- End Class
-